﻿namespace GoodAdmin.Core;

public static class StringUtils
{
    /// <summary>
    /// 首字母小写
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    public static string FirstCharToLower(this string input)
    {
        if (string.IsNullOrEmpty(input))
        {
            return input;
        }

        //return input.First().ToString().ToLower() + input.Substring(1);
        return string.Concat(input.First().ToString().ToLower(), input.AsSpan(1));
    }
}